package com.hippy.erya.modular.util;

import com.hippy.erya.base.auth.context.LoginContextHolder;
import com.hippy.erya.base.auth.model.LoginUser;


public class LoginUserUtils {


    public static LoginUser getLoginUser(){
        LoginUser user = LoginContextHolder.getContext().getUser();
        if(null == user){
            throw new IllegalStateException("用户未登陆");
        }
        return user;
    }


}
